<?php
/**
 * Created by PhpStorm.
 * User: Inhere
 * Date: 15-4-1
 * Time: 上午10:08
 * Used:
 * file: IO.php
 */

namespace ulue\cli\io;

use Ioc;
use Windwalker\IO\Cli;

class IO extends Cli\IO
{
    /**
     * @var CliInput
     */
    public $input = null;

    /**
     * @return array
     */
    public function getRawArgs()
    {
        return $this->input->rawArgs;
    }

    /**
     * @param $key
     * @param null $default
     * @return null
     */
    public function getRawArg($key, $default = null)
    {
        return $this->input->getRawArg($key, $default);
    }

    /**
     * @param $key
     * @param $value
     * @return $this
     */
    public function setRawArg($key, $value)
    {
        $this->input->setRawArg($key, $value);

        return $this;
    }
}